﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClassLibrary.SignalType.SynchronousTransportModuleLevel1.VirtualContainer
{
    public class Vc4 : VirtualContainer
    {
        // --- attributes

        readonly Dictionary<int, Vc> _vcs = new Dictionary<int, Vc>();

        public Dictionary<int, Vc> Vcs
        {
            get { return _vcs; }
        }

        // ---

        public Vc4()
        {
            this._vcType = VCType.VC4;
        }

        public Vc4(VirtualContainer[] virtualContainers) : this()
        {
        }

        public Vc4(DataPackage dataPackage)
        {
            this.dataPackage = dataPackage;
        }

        public void SetVirtualContainer(Vc vc, int vcId)
        {
            _vcs[vcId] = vc;
        }

        public bool IsComposite()
        {
            if (_vcs.Count > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}
